<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Dashboard Template for Bootstrap</title>
		<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/type.css" />
	

	</head>

	<body class="index_body">

		<!--*****************************************导航栏*****************************************************-->
		<nav class="navbar navbar-inverse navbar-fixed-top">
			<div class="container-fluid">
				<!--小米商城名称以及隐藏内容按钮-->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
			        <span class="sr-only"></span>
			        <span class="icon-bar"></span>
			        <span class="icon-bar"></span>
			        <span class="icon-bar"></span>
			    </button>
					<a class="navbar-brand" href="#">小米商城</a>
				</div>
				<!--下拉导航-->
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="active">
							<a href="/xiaomi/index.php?s=/Home/Index/index.html">首页</a>
						</li>
						<li class="dropdown">
							<a href="/xiaomi/index.php?s=/Home/Index/classify.html">分类</a>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
								我的 <span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li>
									<a href="/xiaomi/index.php?s=/Home/Cart/index.html">购物车</a>
								</li>
								<li>
									<a href="/xiaomi/index.php?s=/Home/User/order.html">订单</a>
								</li>
								<li>
									<a href="/xiaomi/index.php?s=/Home/User/personalInfo">信息</a>
								</li>
							</ul>
						</li>
					</ul>
					<!--搜索条-->
					<form class="navbar-form navbar-right">
						<div class="form-group has-feedback">
							<span class="glyphicon glyphicon-search form-control-feedback"></span>
							<input type="text" class="form-control" placeholder="Search for..." autofocus>
						</div>
					</form>
					<!--登陆注册连接-->
					<ul class="nav navbar-nav navbar-right">
					    <li>
							<?php if(($_SESSION['userName']) != ""): ?><a>欢迎您，<?php echo (session('userName')); ?></a><?php endif; ?>
						</li>
						<li>
							<a href="/xiaomi/index.php?s=/Home/User/login">登陆</a>
						</li>
						<li>
							<a href="/xiaomi/index.php?s=/Home/User/register">注册</a>
							<!-- "/xiaomi/index.php?s=/Admin/Controller/action" -->
						</li>
					</ul>
				</div>
			</div>
		</nav>
		<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Dashboard Template for Bootstrap</title>
		<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/type.css" />
		<style type="text/css">
			
			
		</style>

	</head>

	<body class="index_body">
		<!--*****************************************导航栏*****************************************************-->
		
		<!--***************************************section************************************************************-->
		<section class="container-fluid">

			<div class="row">
				<div class="col-sm-9 col-sm-offset-1 col-md-10 col-md-offset-1">
					<!--旋转轮播-->
					<header class="row placeholders">
						<div id="carousel-example-generic" class="carousel" data-ride="carousel">
							<!--轮播控制-->
							<ol class="carousel-indicators">
								<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
								<li data-target="#carousel-example-generic" data-slide-to="1"></li>
								<li data-target="#carousel-example-generic" data-slide-to="2"></li>
							</ol>
							<!--轮播图片-->
							<div class="carousel-inner">
								<div class="item active">
									<img src="/xiaomi/Public/images/index/header01.jpg" />
								</div>
								<div class="item">
									<img src="/xiaomi/Public/images/index/header02.jpg" />
								</div>
								<div class="item">
									<img src="/xiaomi/Public/images/index/header03.jpg" />
								</div>
							</div>
							<!--左右两侧控制滑动按钮-->
							<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"></a>
							<a href="#carousel-example-generic" data-slide="next" class="right carousel-control"></a>
						</div>
					</header>
					<!--商品内容展示-->
					
				
					<?php if(is_array($goodsss)): foreach($goodsss as $key=>$v): ?><div>
						<p id="<?php echo ($v['GoodcategoryId']); ?>"></p>
						<h3 class="page-header"><?php echo ($v[0]['CategoryName']); ?></h3>
						<?php if(is_array($v)): foreach($v as $key=>$g): ?><div class="col-xs-6 col-sm-3 images">
								<a href="/xiaomi/index.php?s=/Home/Index/goods/gid/<?php echo ($g["GoodId"]); ?>"><center><img src="/xiaomi/Public/uploads/img/<?php echo ($g["PictureUrl"]); ?>" class="img-responsive"></center><br>
									<div>
											<span><?php echo ($g['GoodName']); ?></span><br>
									<span class="index_span2"><?php echo ($g['KeyWords']); ?></span><br><br>
									<span class="index_span3">￥<?php echo ($g['Price']); ?></span><br><br><br>
									</div>
								</a>
							</div><?php endforeach; endif; ?>


						<div class="row">
							
						</div>
					</div><?php endforeach; endif; ?>
						
						<?php if(($is_bests) != ""): ?><h3 class="page-header">为你推介</h3>
						<div class="row">
						<?php if(is_array($is_bests)): foreach($is_bests as $key=>$g): ?><div class="col-xs-6 col-sm-3 images">
								<a href="/xiaomi/index.php?s=/Home/Index/goods/gid/<?php echo ($g["GoodId"]); ?>"><img src="/xiaomi/Public/uploads/img/<?php echo ($g['PictureUrl']); ?>" class="img-responsive"><br>
								<div>
									<span><?php echo ($g['GoodName']); ?></span><br>
									<span class="index_span2"><?php echo ($g['KeyWords']); ?></span><br><br>
									<span class="index_span3">￥<?php echo ($g['Price']); ?></span><br><br><br>
								</div></a>
							</div><?php endforeach; endif; ?>
						</div><?php endif; ?>

					</div>
				</div>
			</div>
		</section>

		<script type="text/javascript" src="/xiaomi/Public/js/jquery.min.js"></script>
		<script type="text/javascript" src="/xiaomi/Public/js/bootstrap.min.js"></script>
		<!--
        	作者：offline
        	时间：2017-11-05
        	描述：状态栏改变样式
        -->
		<script>
			$("#selector ul li").click(function() {
				$(".active").removeClass("active");
				$(this).children("a").addClass("active");
			});
		</script>
		
	</body>

</html>
	
</body>
</html>